<template>
  <div style="padding:5px;height:30px;-webkit-app-region:drag;">
     <span style="line-height:30px;padding-left:25px">云收藏</span>
     <a href="javascript:;" class="abutton" @click="closepop"><i class="el-icon-circle-cross chois aicon"></i></a>
  </div>
</template>
<script>
  export default {
    name: 'popheader',
    data () {
      return {
      }
    },
    methods: {
      closepop: function () {
        let BrowserWindow = this.H.electron.remote.BrowserWindow
        let win = BrowserWindow.getFocusedWindow()
        win.close()
      }
    }
  }
</script>

<style scoped>
  .abutton{
    line-height:20px;
    display:block;
    float:right;
    -webkit-app-region: no-drag;
    padding: 2px;
  }
  .chois:hover{
    color:red;
  }
</style>
